﻿namespace AnyOffice.Model
{
    using System;

    public class NewsData
    {
        protected object _attachmentId;
        protected object _content;
        protected string _fromId = string.Empty;
        protected int _newsId = -1;
        protected object _readers;
        protected DateTime _sendTime = DateTime.Now;
        protected string _subject = string.Empty;
        protected object _toId;
        protected object _toPriv;
        protected object _toUser;
        protected int _typeId;
        protected int _viewCount;

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public string Content
        {
            get
            {
                return (string) this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public bool ContentIsNull
        {
            get
            {
                return (this._content == null);
            }
            set
            {
                if (value)
                {
                    this._content = null;
                }
            }
        }

        public string FromId
        {
            get
            {
                return this._fromId;
            }
            set
            {
                this._fromId = value;
            }
        }

        public int NewsId
        {
            get
            {
                return this._newsId;
            }
            set
            {
                this._newsId = value;
            }
        }

        public string Readers
        {
            get
            {
                return (string) this._readers;
            }
            set
            {
                this._readers = value;
            }
        }

        public bool ReadersIsNull
        {
            get
            {
                return (this._readers == null);
            }
            set
            {
                if (value)
                {
                    this._readers = null;
                }
            }
        }

        public DateTime SendTime
        {
            get
            {
                return this._sendTime;
            }
            set
            {
                this._sendTime = value;
            }
        }

        public string Subject
        {
            get
            {
                return this._subject;
            }
            set
            {
                this._subject = value;
            }
        }

        public string ToId
        {
            get
            {
                return (string) this._toId;
            }
            set
            {
                this._toId = value;
            }
        }

        public bool ToIdIsNull
        {
            get
            {
                return (this._toId == null);
            }
            set
            {
                if (value)
                {
                    this._toId = null;
                }
            }
        }

        public string ToPriv
        {
            get
            {
                return (string) this._toPriv;
            }
            set
            {
                this._toPriv = value;
            }
        }

        public bool ToPrivIsNull
        {
            get
            {
                return (this._toPriv == null);
            }
            set
            {
                if (value)
                {
                    this._toPriv = null;
                }
            }
        }

        public string ToUser
        {
            get
            {
                return (string) this._toUser;
            }
            set
            {
                this._toUser = value;
            }
        }

        public bool ToUserIsNull
        {
            get
            {
                return (this._toUser == null);
            }
            set
            {
                if (value)
                {
                    this._toUser = null;
                }
            }
        }

        public int TypeId
        {
            get
            {
                return this._typeId;
            }
            set
            {
                this._typeId = value;
            }
        }

        public int ViewCount
        {
            get
            {
                return this._viewCount;
            }
            set
            {
                this._viewCount = value;
            }
        }
    }
}

